/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package grex.fitnessfunctions.ErrorFunctions;

import grex.Environment;
import grex.Prediction;
import grex.PredictionContainer;
import grex.fitnessfunctions.FitnessFunction;
import grex.fitnessfunctions.IFitnessFunction;
import grex.genes.Gene;
import grex.genes.If;

/**
 *
 * @author RIK
 */
public class ErrorMGMRAE extends FitnessFunction{
    
    public ErrorMGMRAE(){
        super("MGMRAE");
    }
        
    @Override
    protected double calcFinalError(PredictionContainer pc){
        
        if(model==null)
            return -1;
        return model.getNrOfNodes();
    }

    @Override
    protected double calcPredictionError(Prediction prediction, double targetValue) {
        return 0;
    }

}
